home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
076-100
/
disk_098
/
thai
/
strsave.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-05-06
|
172b
|
18 lines
#include <stdio.h>
char *malloc ();
char *
strsave ( s )
char *s;
{
char *p;
p = malloc ( strlen ( s ) + 1 );
if ( p != NULL )
strcpy ( p , s );
return ( p );
}